﻿
namespace Liger.Web.UI
{

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Liger.Web.Common.Extensions;


    public class GridPagingSettings
    {
        public GridPagingSettings()
        {
            this.UsePager = true; 
        }

        public bool Enabled
        {
            get
            {
                return UsePager;
            }
        }

        /// <summary>
        /// 是否分页
        /// </summary>
        public bool UsePager
        {
            get;
            set;
        } 
       
        /// <summary>
        /// 默认当前页
        /// </summary>
        public int? Page
        {
            get;
            set;
        }
        ///// <summary>
        ///// 总页面数(不可用)
        ///// </summary>
        //public int? Total
        //{
        //    get;
        //    set;
        //}
        /// <summary>
        /// 每页默认的结果数
        /// </summary>
        public int? PageSize
        {
            get;
            set;
        }
        /// <summary>
        /// 可选择设定的每页结果数
        /// </summary>
        public IList<int> PageSizeOptions
        {
            get;
            set;
        }

 
        

    }
}
